Page({
  data:{
    repairList:[]
  },
  onLoad(){
    this.getList()
  },
  async getList(){
    const {data} = await wx.http({url:'/repair'})
    // console.log(data);
    this.setData({repairList:data.rows})
  },
  goDetail(e) {
    wx.navigateTo({
      url: '/repair_pkg/pages/detail/index?id=' + e.mark.id,
    })
  },
  addRepair() {
    wx.navigateTo({
      url: '/repair_pkg/pages/form/index',
    })
  },
})
